Migrate to golangci-lint v2 and optimize CI/CD #51
+1,280
−83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Config Migration:
.golangci.yaml: Updated to v2 schema (default: all, nestedlinters.settings)CI Optimization:
.github/workflows/checks.yml: Use golangci-lint-action@v8 with pre-built binariesmake install-toolsstep (action handles it)Tool Management:
tools/tools.go: New file with blank imports (single source of truth for tool versions)Makefile: Simplified to use go.mod versions (removed @Version suffixes)Bug Fixes:
httpserver/handler.go: Explicitly handle w.Write() errors to satisfy gosecTest Plan
make install-tools- Tools install correctly from go.modmake lint- 0 issues locallymake test- All tests passLearnings Applied
All changes are based on optimizations discovered while migrating protect-rpc from golangci-lint v2.1.2 to v2.5.0, where we:
🤖 Generated with Claude Code